import 'package:flutter/material.dart';
import 'package:get/get.dart';
class NotFoundPage extends StatefulWidget {
  const NotFoundPage({super.key});

  @override
  State<NotFoundPage> createState() => _NotFoundPageState();
}

class _NotFoundPageState extends State<NotFoundPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        iconTheme: IconTheme.of(context).copyWith(
          color: Colors.black,
          size: 35,
        ),
        title: const Text(
          '404 - Page Not Found',
          style: TextStyle(color: Colors.black),
        ),
      ),
      body: Center(
        child: Text(
            'Oops! The route from "${Get.previousRoute}" does not exist.'), // 获取未知路由的名称
      ),
    );
  }
}